package analizator;

import analizator.Analizator.Atom;

/**
 *
 * @author bufu
 */
public class Delimitator implements Atom {

    public String m_value;
    private int m_line, m_column;

    public Delimitator(String value, int line, int column) {
        m_value = value;
        m_line = line;
        m_column = column;
    }

    @Override
    public String toString() {
        return "Delimitator " + m_value + " " + m_line + " " + m_column;
    }

    /*
     * public static Delimitator makeAtom(FileProvider provider) { Caracter c =
     * provider.getCharacter(); if (c == null) { return null; } switch (c.value)
     * { case ';': return new Delimitator(";", c.line, c.column); case ':':
     * return new Delimitator(":", c.line, c.column); case ',': return new
     * Delimitator(",", c.line, c.column); case '.': Caracter temp =
     * provider.getCharacter(); if (temp.value == '.') { return new
     * Delimitator("..", c.line, c.column); } else {
     * provider.putCharacter(temp); return new Delimitator(".", c.line,
     * c.column); } default: provider.putCharacter(c); return null; }
    }
     */
}
